import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/relation/` + url, ...arg)

export default {
	async queryProcessVersionRelationList(processId,bizId, bizType) {
		return await request('version/list', {processId,bizId, bizType}, 'post')
	},
	async saveProcessRelationConfig(data) {
		return await request('save', data, 'post')
	},
	async removeRelation(id) {
		return await request(`remove/${id}`, {}, 'post')

	},
	async queryProcessVersionRelationListByBizIdAndType(bizId, bizType) {
		return await request(`list`, {bizId, bizType}, 'post')
	},
}

